<?php

// remove concrete class dependency
require_once 'Pipes/Xml/Document.php';
require_once 'PipesImpl/Renderable.php';

class Pipes_Xml_Renderer implements PipesImpl_Renderable {
    private $_document = null;

    public function __construct(Pipes_Xml_Document $document) {
        $this->_document = $document;
    }

    public function render() {
        return $this->_document->saveXML();
    }
}
